const routes = [
  {
    path: "/",
    name: "index",
    component: () => import("../views/Index.vue"),
    meta: {
      title: "首页",
      auth: false,
    },
  },
  {
    path: "/index",
    redirect: "/",
  },
  {
    path: "/main",
    name: "main",
    component: () => import("../views/Main.vue"),
    meta: {
      title: "首页",
      auth: false,
    },
    children: [
      {
        path: "/list",
        name: "list",
        component: () => import("../views/List.vue"),
        meta: {
          title: "列表页",
          auth: false,
        },
      },
    ],
  },
];
export default routes;
